<layout name='Layout/layout_main' />

<script type="text/javascript">
		function save(cate) {
			if(check_form("form_data")){
				sendForm("form_data", "{:U('save')}","/index.php/category/index/cate/"+cate);
			}
		}
	</script>
<div class="customer">
	<div class="row-fluid title">
		<span>编辑设置：{$vo.name}</span>
	</div>
	<form method='post' id="form_data" class="row-fluid">
		<input type="hidden" name="opmode" value="edit">
		<input type="hidden" name="id" value="{$vo.id}">
		<input type="hidden" name="ajax" id="ajax" value="1">
		<div class="row-fluid form_box">
			<div class="row-fluid form-horizontal">
				<div class="control-group">
					<label class="control-label" for="name">名称*：</label>
					<div class="controls">
						<input type="text" id="name" name="name"  check="require" msg="请输入名称"  value="{$vo.name}"></div>
				</div>
			</div>
			<div class="row-fluid form-horizontal">
				<div class="control-group">
					<label class="control-label" for="remark">其他：</label>
					<div class="controls">
						<textarea  name="description" rows="5" class="span12">{$vo.description}</textarea>
					</div>
				</div>
				<div class="action">
          <input class="btn default" type="button" value="保存" onclick="save('{$vo.cate}');">
					<input  class="btn" type="button" value="取消" onclick="go_return_url('{$vo.cate}');"></div>
			</form>
		</div>
	</div>
</div>
